package com.dimeng.entity;



/**
 * @author write by ccn<br>
 * <b>helloandroid100@gmail.com</b>
 * @version 0.1;2012-5-18 下午5:13:21<br>
 * descrition:搜索结果实体类
 */
public class ResultEntity {
	//--公共属性
	private String registerOrPublishTime;//注册时间或者发面时间
	private String detailUrl;//详情地址
	private String region;//所属地市
	//--产品属性	
	private String prodName;//产品名称
	private String imageUrl;//产品图片名称
	//--公司属性
	private String companyName;//公司名称
	private String companyAddr;//公司地址
	private String businessModeName;//经营模式
	private String mainBusiness;//主营业务
	
	private ResultEntity(){};
	
	/**
	 * 产品搜索结果构造函数
	 * @param prodDetailUrl 产品详情地址
	 * @param imageUrl 产品图片地址
	 * @param name 产品名称
	 * @param region 所属地区
	 * @param publishTime 发布时间
	 * @param companyName 公司名称
	 */
	private ResultEntity(String detailUrl,String imageUrl, String prodName, String region,
			String registerOrPublishTime, String companyName) {
		this.detailUrl = detailUrl;
		this.imageUrl = imageUrl;
		this.prodName = prodName;
		this.region = region;
		this.registerOrPublishTime = registerOrPublishTime;
		this.companyName = companyName;
	}
	
	/**
	 * 公司搜索结果构造函数
	 * @param detailUrl 公司主页详情地址
	 * @param companyName 公司名称
	 * @param memberTyep 公司类别:0 普通 ;1 黄金商铺
	 * @param mainProduct 主营产品
	 * @param mainBusiness 经营模式
	 * @param region 所属地区
	 * @param region 所属地区
	 * @param companyAddr 公司详细地址 
	 * @param registerOrPublishTime 注册时间
	 */
	private ResultEntity(String detailUrl,String companyName,String memberTyep, 
			String businessModeName,String mainBusiness,String region,String companyAddr) {
		this.detailUrl = detailUrl;
		this.companyName = companyName;
		this.businessModeName = businessModeName;
		this.mainBusiness = mainBusiness;
		this.region = region;
		this.companyAddr = companyAddr;
	}
	/**获取一个产品搜索结果实例**/
	public static ResultEntity getProdSearchResultEntity(String detailUrl,String imageUrl, 
			String prodName, String region,String registerOrPublishTime, String companyName){
		return new ResultEntity(detailUrl, imageUrl, prodName, region, registerOrPublishTime, companyName);
	}
	/**获取一个公司搜索结果实例**/
	public static ResultEntity getCompanySearchResultEntity(String detailUrl,String companyName,String memberTyep, 
			String businessModeName,String mainBusiness,String region,String companyAddr){
		return new ResultEntity(detailUrl, companyName, memberTyep,businessModeName, mainBusiness,region, companyAddr);
	}
	
	public String getRegisterOrPublishTime() {
		return registerOrPublishTime;
	}
	public void setRegisterOrPublishTime(String registerOrPublishTime) {
		this.registerOrPublishTime = registerOrPublishTime;
	}
	public String getDetailUrl() {
		return detailUrl;
	}
	public void setDetailUrl(String detailUrl) {
		this.detailUrl = detailUrl;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public String getProdName() {
		return prodName;
	}
	public void setProdName(String prodName) {
		this.prodName = prodName;
	}
	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getCompanyAddr() {
		return companyAddr;
	}
	public void setCompanyAddr(String companyAddr) {
		this.companyAddr = companyAddr;
	}
	public String getMainBusiness() {
		return mainBusiness;
	}
	public void setMainBusiness(String mainBusiness) {
		this.mainBusiness = mainBusiness;
	}

	public String getBusinessModeName() {
		return businessModeName;
	}

	public void setBusinessModeName(String businessModeName) {
		this.businessModeName = businessModeName;
	}
}
